package hn.cch.jdbc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;

/**
 * Created by chench on 2020-5-21.
 */

@Component
public class JdbcDao {

    @Autowired
    private JdbcTemplate simpleJdbcTemplate;

    @Autowired
    private JdbcTemplate centerJdbcTemplate;

    @Autowired
    private JdbcTemplate accessJdbcTemplate;

    @Autowired
    private JdbcTemplate secretJdbcTemplate;


    public JdbcTemplate getSimpleJdbcTemplate() {
        return simpleJdbcTemplate;
    }

    public JdbcTemplate getCenterJdbcTemplate() {
        return centerJdbcTemplate;
    }

    public JdbcTemplate getAccessJdbcTemplate() {
        return accessJdbcTemplate;
    }

    public JdbcTemplate getSecretJdbcTemplate() {
        return secretJdbcTemplate;
    }
}
